package com.example.ch05.broadcastReceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class TestTimeDelayReceiver extends BroadcastReceiver {
	private static final String tag = "TestTimeDelayReceiver";

	@Override
	public void onReceive(Context context, Intent intent) {
		Utils.logThreadSignature(tag);
		Log.d(tag, "intent=" + intent);
		Log.d(tag, "going to sleep for 2 secs");
		Utils.sleepForInSecs(2);
		Log.d(tag, "wake up");
		String message = intent.getStringExtra("message");
		Log.d(tag, message);
	}
}
